<%= form_for(@category) do |f| %>
  <% if @category.errors.any? %>
    <div class="alert alert-error">
      <h4><%= t('global_form_error') %></h4>
	  <%= pluralize(@category.errors.count, t("global_form_error")) %><%= t('global_form_prohibited') %>
      <ul>
      <% @category.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <div class="field">
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
